package LZ;

import str.PR;

public class Cx {
    public static void main(String[] args) {
        Zool1 zool1 = new tag();
        zool1.heshui();
       Zool1 zool = new Zool1() {
           @Override
           void heshui() {
               System.out.println("老虎喝水");
           }
       };

       zool.heshui();
        System.out.println(zool1 instanceof Zool1);
        Cx cx =new Cx();
        System.out.println(cx.getClass());
        System.out.println(zool1.getClass().getName());
        System.out.println(zool.getClass().getName());

    }

    @Override
    public String toString() {
        return super.toString();
    }
}
abstract class Zool1{
     abstract void heshui();
}
class tag extends Zool1{
    void hesi(){
        System.out.println("1111");
    }
    void heshui(){
        System.out.println("老虎喝水");
    }
}